<%@ Control Language="c#" Inherits="LocalBoard.Web.UserControls.ClubInformation" CodeFile="ClubInformation.ascx.cs" %>
<TABLE cellSpacing="1" cellPadding="1" width="100%" border="1">
	<TR>
		<TD>Club Name: </TD>
		<TD><asp:TextBox id="clubName" runat="server"></asp:TextBox>
<asp:Label id="clubId" runat="server" Visible="False"></asp:Label></TD>
	</TR>
	<TR>
		<TD>Unique Name: </TD>
		<TD><asp:TextBox id="uniqueName" runat="server"></asp:TextBox>
				<asp:Button id="checkUniqueName" runat="server" Enabled="False" Text="Check"></asp:Button></TD>
	</TR>
	<tr>
		<td>Club Category</td>
		<td><asp:DropDownList id="clubCategory" runat="server"></asp:DropDownList></td>
	</tr>
	<TR>
		<TD>Description: </TD>
		<TD><asp:TextBox id="description" runat="server" Width="400"></asp:TextBox></TD>
	</TR>
	<TR id="clubTypeRow" runat="server">
		<TD>Club Type: </TD>
		<TD><asp:RadioButtonList id="clubType" runat="server"></asp:RadioButtonList></TD>
	</TR>
</TABLE>



<b>Create Club Join Form</b><br>
<asp:textbox id="LoadXmlTextBox" runat="server"></asp:textbox>&nbsp;
<asp:button id="LoadXmlButton" runat="server" Text="Load Form" onclick="LoadXmlButton_Click"></asp:button>&nbsp;&nbsp;
<asp:button id="NewFileButton" runat="server" Text="New Form" onclick="NewFileButton_Click"></asp:button>
<br>
<table width="100%">
	<tr>
		<td width="5"></td>
		<td width="*"><asp:datagrid id="DataGrid1" runat="server" CellPadding="3" CellSpacing="1" AutoGenerateColumns="False">
				<Columns>
					<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
					<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
					<asp:TemplateColumn HeaderText="Control">
						<ItemTemplate>
							<%# DataBinder.Eval(Container.DataItem, "Control") %>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:DropDownList Runat=server SelectedValue='<%# (string)DataBinder.Eval(Container.DataItem, "Control") %>' id="ddlControl">
								<asp:ListItem>CheckBox</asp:ListItem>
								<asp:ListItem>CheckBoxList</asp:ListItem>
								<asp:ListItem>DropDownList</asp:ListItem>
								<asp:ListItem>Label</asp:ListItem>
								<asp:ListItem>ListBox</asp:ListItem>
								<asp:ListItem>Multiline</asp:ListItem>
								<asp:ListItem>Password</asp:ListItem>
								<asp:ListItem>RadioButtonList</asp:ListItem>
								<asp:ListItem>TextBox</asp:ListItem>
							</asp:DropDownList>
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Data">
						<ItemTemplate>
							<%# DataBinder.Eval(Container.DataItem, "Data") %>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:DropDownList runat="server" SelectedValue='<%# (string)DataBinder.Eval(Container.DataItem, "Data") %>' id="ddlData">
								<asp:ListItem>Other</asp:ListItem>
								<asp:ListItem>Currency</asp:ListItem>
								<asp:ListItem>Date</asp:ListItem>
								<asp:ListItem>Double</asp:ListItem>
								<asp:ListItem>Integer</asp:ListItem>
								<asp:ListItem>String</asp:ListItem>
							</asp:DropDownList>
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Required">
						<ItemTemplate>
							<%# DataBinder.Eval(Container.DataItem, "Required") %>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:DropDownList runat="server" SelectedValue='<%# (string)DataBinder.Eval(Container.DataItem, "Required") %>' id="ddlRequired">
								<asp:ListItem>No</asp:ListItem>
								<asp:ListItem>Yes</asp:ListItem>
							</asp:DropDownList>
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Order" HeaderText="Order"></asp:BoundColumn>
					<asp:BoundColumn DataField="Label" HeaderText="Label"></asp:BoundColumn>
					<asp:BoundColumn DataField="Text" HeaderText="Text"></asp:BoundColumn>
				</Columns>
			</asp:datagrid></td>
	</tr>
	<tr>
		<td width="5"></td>
		<td width="*"><asp:linkbutton id="AddRowButton" runat="server" Visible="False" Text="Add new item" Font-Size="smaller" onclick="AddRowButton_Click">
Add new item
</asp:linkbutton></td>
	</tr>
	<tr>
		<td width="5"></td>
		<td width="*">
			<asp:HyperLink ID="previewLink" Runat="server" Target="_blank" Visible="False">Preview Form</asp:HyperLink>
		</td>
	</tr>
</table>
<asp:label id="Message" runat="server" enableviewstate="false" forecolor="red" width="80%"></asp:label>
<P>



	<asp:Button id="create" runat="server" Text="Create" onclick="create_Click"></asp:Button>&nbsp;&nbsp; 
<asp:Button id="change" runat="server" Text="Change" onclick="change_Click"></asp:Button>&nbsp;&nbsp; 
<asp:Button id="delete" runat="server" Text="Delete" onclick="delete_Click"></asp:Button>&nbsp;
	<asp:Button id="cancel" runat="server" Text="Cancel" onclick="cancel_Click"></asp:Button></P>
